switchroot/remount: Trim set of remounted filesystems
authorColin Walters <walters@verbum.org>
Fri, 12 May 2017 19:55:12 +0000 (15:55 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 16 May 2017 16:13:05 +0000 (16:13 +0000)
I really have no idea what I was thinking with that list of mount points. It
seems arbitrary. Sadly `git log` doesn't help, and there's no comments.

Basically, the only mounts we should care about are those that libostree
creates. Which are just `/sysroot` and `/var`. Systemd will handle the other
things like `/tmp`, it's not our job, and we shouldn't touch them.

Closes: #859
Approved by: jlebon

src/switchroot/ostree-remount.c

index bd4d12539f62a600ea2a730ac66d688a5a05bbde..e19de18346374d6869d940810b40cbd2d4e0b3a1 100644 (file)
@@ -41,7 +41,7 @@
 int
 main(int argc, char *argv[])
 {
-  const char *remounts[] = { "/sysroot", "/etc", "/home", "/root", "/tmp", "/var", NULL };
+  const char *remounts[] = { "/sysroot", "/var", NULL };
   struct stat stbuf;
   int i;